﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OplugAbpProject.Transaction
{
    [Table("EventHeader")]
   public class EventHeader : Entity<long>, IHasCreationTime, ICreationAudited, IMayHaveTenant, IHasModificationTime
    {
        public DateTime CreationTime { get; set; } = DateTime.Now;
        public long? CreatorUserId { get; set; }
        public int? TenantId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        public string SysRowID { get; set; } = Guid.NewGuid().ToString();
        /// <summary>
        /// 案卷号
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string EventNumber { get; set; }
        /// <summary>
        /// 案卷名
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string EventTitle { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [MaxLength(10)]
        public string EventStatus { get; set; }
        /// <summary>
        /// 商户ID
        /// </summary>
        public long MerchId { get; set; }
    }
}
